package com.wonders.hisdoctor.station.project.laboratory.mapper;

import com.wonders.hisdoctor.station.project.laboratory.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhaogongming
 * @date 2021-02-04
 **/
@Mapper
@Repository
public interface LaboratoryMapper {

    List<DeptResponseVo> selectDeptList(String hospitalCode);

    List<LaboratoryResponseVo> selectLaboratoryList(LaboratoryRequestVo laboratoryRequestVo);

    List<LaboratoryResponseVo> selectLaboratory(LaboratoryInfoRequestVo laboratoryInfoRequestVo);

    /**
     * 新版，加组合名称
     * @param laboratoryInfoRequestVo
     * @return
     */
    List<LaboratoryResponseVo> selectLaboratoryNew(LaboratoryInfoRequestVo laboratoryInfoRequestVo);

    List<LaboratoryResponseVo> selectHistoryLaboratory(LaboratoryHistoryRequestVo laboratoryHistoryRequestVo);

    Integer deleteBatchOutpTreatRec(List<CancelLaboratoryRequestVo> list);

    Integer deleteBatchOutpTreatRecT(List<CancelLaboratoryRequestVo> list);

    Integer deleteBatchLabTestItems(List<CancelLaboratoryRequestVo> list);

    Integer deleteBatchLabTestMaster(List<CancelLaboratoryRequestVo> list);

    List<LaboratoryPrintReponseVo> selectPrintInfo(List<LaboratoryPrintRequestVo> list);

    /**
     * 获得OUTP_TREAT_REC表serialNo下最大的ITEM_NO(检验)
     * @param serialNo
     * @return
     */
    Integer getMaxItemNo(String serialNo);
}
